import sys
import pygame
class AlienInvasion:

    def __init__(self):
        pygame.init()

        self.screen = pygame.display.setmode((1200,800))
        pygame.display.setcaption('Alien invasion')

    def run_game(self):
        while True:
            for event in pygame.event.get():
                if event.type == pygame.QUIT:
                    sys.exit()

                pygame.displaly.flip()
if __name__ == '__main__':
    ai = AlientInvsion()
    ai.run_game()


    def __init(self):
        pygame.display.setcaption('Alien invasion')
        self.bg_color(23)
